package com.cloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * feign服务层
 *
 * @author : z_sz
 * @date : 2020-08-03 16:21
 **/
@Component
@FeignClient(value = "cloud-provider-payment")
public interface FeignService {
    @GetMapping("/pay/payGoods?goodsName={goodsName}&price={price}")
    String payGoods(@PathVariable("goodsName") String goodsName,
                    @PathVariable("price") Double price);
}
